default: pdf

PAPER = QoS-wsc-paper



once: *.tex 
	latex $(PAPER)
	dvips -j0 -Ppdf -Pdownload35 -G0 -t letter $(PAPER).dvi -o $(PAPER).ps
	ps2pdf -dEmbedAllFonts=true $(PAPER).ps $(PAPER).pdf
	evince $(PAPER).pdf &

pdf: *.tex *.bib
	latex $(PAPER)
	bibtex $(PAPER)
	latex $(PAPER)
	dvips -j0 -Ppdf -Pdownload35 -G0 -t letter $(PAPER).dvi -o $(PAPER).ps
	ps2pdf -dEmbedAllFonts=true $(PAPER).ps $(PAPER).pdf
	evince $(PAPER).pdf &

clean:
	rm -f $(PAPER).pdf $(PAPER).ps  *.dvi  *.aux *.log *.bak
